package com.cellulam.framework.core.log;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;

import java.net.URI;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RestLog {
    private long cost;
    private URI uri;
    private HttpMethod method;
    private HttpHeaders requestHeaders;

    private String requestBody;
    private int responseStatus;
    private String responseStatusText;
    private HttpHeaders responseHeaders;
    private String responseBody;
}
